import { RouteRecordRaw } from "vue-router";

// 帐号管理模块
const tableRouter: Array<RouteRecordRaw> = [
  {
    path: "/cpyflexjob",
    component: () => import("@/layouts/index.vue"),
    redirect: "/cpyflexjob/pub",
    meta: {
      icon: "MessageBox",
      title: "零工管理"
    },
    children: [
      {
        path: "/cpyflexjob/pub",
        name: "cpyflexjobPub",
        component: () => import("@/views/cpyflexjob/pub/index.vue"),
        meta: {
          icon: "menu",
          title: "我的发布",
          keepAlive: true,
          requiresAuth: true,
          key: "cpyflexjobPub"
        },
        children: []
      },
      {
        path: "/cpyflexjob/audit",
        name: "cpyflexjobAudit",
        component: () => import("@/views/cpyflexjob/audit/index.vue"),
        meta: {
          icon: "menu",
          title: "我的审核",
          keepAlive: true,
          requiresAuth: true,
          key: "cpyflexjobAudit"
        },
        children: []
      },
      {
        path: "/cpyflexjob/message",
        name: "cpyflexjobMessage",
        component: () => import("@/views/im/index.vue"),
        meta: {
          icon: "menu",
          title: "我的沟通",
          keepAlive: true,
          requiresAuth: true,
          key: "cpyflexjobMessage"
        },
        children: []
      },
      {
        path: "/cpyflexjob/comment",
        name: "cpyflexjobComment",
        component: () => import("@/views/cpyflexjob/comment/index.vue"),
        meta: {
          icon: "menu",
          title: "我的评价",
          keepAlive: true,
          requiresAuth: true,
          key: "cpyflexjobComment"
        },
        children: []
      },
      {
        path: "/cpyflexjob/abnormal",
        name: "cpyflexjobAbnormal",
        component: () => import("@/views/cpyflexjob/abnormal/index.vue"),
        meta: {
          icon: "menu",
          title: "我的售后",
          keepAlive: true,
          requiresAuth: true,
          key: "cpyflexjobAbnormal"
        },
        children: []
      },
      {
        path: "/cpyflexjob/bill",
        name: "cpyflexjobBill",
        component: () => import("@/views/cpyflexjob/bill/index.vue"),
        meta: {
          icon: "menu",
          title: "发票管理",
          keepAlive: true,
          requiresAuth: true,
          key: "cpyflexjobBill"
        },
        children: []
      },
      {
        path: "/cpyflexjob/billrise",
        name: "cpyflexjobBillrise",
        component: () => import("@/views/cpyflexjob/billrise/index.vue"),
        meta: {
          icon: "menu",
          title: "发票抬头",
          keepAlive: true,
          requiresAuth: true,
          key: "cpyflexjobBillrise"
        },
        children: []
      },
      {
        path: "/cpyflexjob/report",
        name: "cpyflexjobReport",
        component: () => import("@/views/cpyflexjob/report/index.vue"),
        meta: {
          icon: "menu",
          title: "帐户明细",
          keepAlive: true,
          requiresAuth: true,
          key: "cpyflexjobReport"
        },
        children: []
      }
    ]
  }
];

export default tableRouter;
